#!/bin/bash

cur_dir=`pwd`
docker stop dev-mysql-01
docker rm dev-mysql-01
docker run --name dev-mysql-01 \
-p 3306:3306 \
-v ${cur_dir}/conf:/etc/mysql/conf.d \
-v ${cur_dir}/data:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD=yafei236 \
-d mysql:5.6 \
--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci


# docker rm -f dev-mysql-01
# docker run \
# --name dev-mysql-01 \
# -p 3306:3306  \
# -v /home/yafei/develop/data/mysql/dev-mysql-01:/var/lib/mysql \
# -e MYSQL_ROOT_PASSWORD=yafei236 \
# -d mysql:5.6 \
# --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci